<!--
 * @Author: hucc
 * @Date: 2021-10-08 11:14:36
 * @LastEditors: hucc
 * @LastEditTime: 2021-10-08 11:23:54
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-model</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>
</head>

<body>
    <div id="app">
        <input type="text" v-model='msg'> {{ msg }}
    </div>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    msg: ''
                }
            }
        })
    </script>
</body>

</html>